﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Atomic.Permission.Entities
{
    /// <summary>
    /// 页面对应的功能点
    /// </summary>
    public class FunPointEntity
    {
        /// <summary>
        /// 自增主键
        /// </summary>
        public virtual int ID { set; get; }
        /// <summary>
        /// 唯一键
        /// </summary>
        [DisplayName("键名")]
        [Required]
        [StringLength(100)]
        public virtual string Key { set; get; }

        /// <summary>
        /// 操作名称
        /// </summary>
        [DisplayName("操作名称")]
        [Required]
        [StringLength(20)]
        public virtual string Name { set; get; }

        /// <summary>
        /// 所属窗体
        /// </summary>
        public virtual int FormID { set; get; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public virtual bool Enabled { set; get; }
    }
}
